#!/bin/sh

SRC_DIR=$(cd `dirname $0`; pwd)
OUTPUT=${SRC_DIR}/output

mkdir -p ${OUTPUT} && cd ${OUTPUT}

if [ "$1" = "clean" ]; then
	rm -rf ${OUTPUT}
else
	# 编译
	cmake .. && make
fi

